package com.hcms.base.controller;

import org.apache.catalina.security.SecurityUtil;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/home")
public class HomeController {

    String prefix = "base/home/";

    @RequestMapping("/index.html")
    public String index() {
        return prefix + "index";
    }

    @RequestMapping("/console.html")
    public String console() {
        return prefix + "console";
    }

    // 无权限 提示信息
    @ResponseBody
    @RequestMapping("/noauth")
    public String noAuth() {
        return "您没有权限访问该资源";
    }
}
